/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bgu.sonar.util.strings;

import java.io.IOException;
import java.io.OutputStream;

/**
 *
 * @author bennyl
 */
public class StringOutputStream extends OutputStream{
    StringBuilder sb = new StringBuilder();

    @Override
    public void write(int b) throws IOException {
        sb.append((char)b);
    }

    @Override
    public String toString() {
        return sb.toString();
    }

}
